package com.hrh.selectsystem.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hrh.selectsystem.common.BaseResponse;
import com.hrh.selectsystem.model.entity.Round;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hrh.selectsystem.model.vo.RoundVO;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;

/**
* @author hetongxue
* @description 针对表【round(轮次)】的数据库操作Service
* @createDate 2024-10-26 14:11:52
*/
public interface RoundService extends IService<Round> {

    /**
     * 分页获取轮次表
     * @param current
     * @param size
     * @return
     */
    Page<RoundVO> listRoundByPage(long current, long size);

    /**
     * 结束当前轮次
     * @return
     */
    boolean endCurrentRound();

    /**
     * 启动下一轮次
     * @return
     */
    boolean startNextRound();

    /**
     * 重置所有轮次状态
     * @return
     */
    boolean resetAllRounds();

    /**
     * 获取当前已启动的轮次
     * @return
     */
    Integer getStartedRound();
}
